#! /bin/bash

clear
# 上一级目录
ROOT_PATH=$(dirname "$PWD")
echo "root path: $ROOT_PATH"
sleep 2

cd $ROOT_PATH/java-agent-test && mvn -T 1C clean package -Dmaven.test.skip=true
cd $ROOT_PATH
java -javaagent:./java-agent-server/target/java-agent-server-jar-with-dependencies.jar=org.example -jar ./java-agent-test/target/java-agent-test.jar